package Models;
import javax.swing.ImageIcon;

import Tiles.Tile;

public class Player {
	private Tile tileOccupied;
	private String name;
	private ImageIcon img;

	public Player(String name, Tile tile, ImageIcon img) {
		this.name = name;
		this.tileOccupied = tile;
		this.img = img;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setTile(Tile t) {
		this.tileOccupied = t;
	}

	public Tile getTile() {
		return tileOccupied;
	}

	public ImageIcon getImage() {
		return img;
	}

	@Override
	public String toString() {
		return getName() + " on tile: " + tileOccupied;
	}

}


